package com.miracle.android_voip_simple_demo;

import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.support.multidex.MultiDex;

import com.blankj.utilcode.util.Utils;
import com.tucodec.voip.TYVoipAndroid;

/**
 * Created by pan on 2017/12/13.
 */

public class TucodeC extends Application {

    private TYVoipAndroid mVoIPClient;

    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);

        mVoIPClient = new TYVoipAndroid(new Handler(),this,null);
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    public  TYVoipAndroid getSingleVoipInstance() {
        return mVoIPClient;
    }
}
